<?php /* Smarty version 2.6.16, created on 2012-03-14 20:26:43
         compiled from my_videos.tpl */ ?>
<?php echo '
<!--link media="screen" rel="stylesheet" href="style/alert.css" />
<link media="screen" rel="stylesheet" href="style/colorbox.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="js/jquery.colorbox.js"></script>
<script>
		$(document).ready(function(){
		$(".example5").colorbox();
		$(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
       });
</script-->		
'; ?>

<div id="paging"> 
<div class="button-flex button90"><a href="my_video_update.php"><span>Add Video</span></a></div>	 
  <div class="content">
   		<!-- tab -->
    	<ul class="tabflex">
        	<li><a href="dashboard.php"><span>Dashboard</span></a></li>
            <li><a href="inbox.php"><span>Message</span></a></li>
			<li><a href="javascript:;" ><span>Profile</span></a></li>
			<?php if ($this->_tpl_vars['is_coach'] == '1'): ?><li><a href="coach_game.php"><span>Coach</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_partner'] == '1'): ?><li><a href="training_partner_game.php"><span>Training Partner</span></a></li><?php endif; ?>
			<li><a href="inbox.php"><span>Lessons</span></a></li>
			<li><a href="liked_videos.php" class="active"><span>Videos</span></a></li>
			<li><a href="inbox.php"><span>Reviews</span></a></li>
			<!--    <li><a href="#"><span>Students</span></a></li>-->
        </ul>
        <!-- tab -->
        <div class="clear"></div>
        <div class="tabular-content"> 
		 <div class="tab_sub">
            	<ul>
                	<li><a href="javascript:;" >Upload Videos</a></li>
                    <li><a href="liked_videos.php" class="active">Liked Videos</a></li>
                </ul>
            </div> 
		 <div class="clear"></div>
	  
	   <?php if ($this->_tpl_vars['Numcoachvdo'] > 0): ?>
	  <?php unset($this->_sections['vdoRow']);
$this->_sections['vdoRow']['name'] = 'vdoRow';
$this->_sections['vdoRow']['loop'] = is_array($_loop=$this->_tpl_vars['CoachvdoArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['vdoRow']['show'] = true;
$this->_sections['vdoRow']['max'] = $this->_sections['vdoRow']['loop'];
$this->_sections['vdoRow']['step'] = 1;
$this->_sections['vdoRow']['start'] = $this->_sections['vdoRow']['step'] > 0 ? 0 : $this->_sections['vdoRow']['loop']-1;
if ($this->_sections['vdoRow']['show']) {
    $this->_sections['vdoRow']['total'] = $this->_sections['vdoRow']['loop'];
    if ($this->_sections['vdoRow']['total'] == 0)
        $this->_sections['vdoRow']['show'] = false;
} else
    $this->_sections['vdoRow']['total'] = 0;
if ($this->_sections['vdoRow']['show']):

            for ($this->_sections['vdoRow']['index'] = $this->_sections['vdoRow']['start'], $this->_sections['vdoRow']['iteration'] = 1;
                 $this->_sections['vdoRow']['iteration'] <= $this->_sections['vdoRow']['total'];
                 $this->_sections['vdoRow']['index'] += $this->_sections['vdoRow']['step'], $this->_sections['vdoRow']['iteration']++):
$this->_sections['vdoRow']['rownum'] = $this->_sections['vdoRow']['iteration'];
$this->_sections['vdoRow']['index_prev'] = $this->_sections['vdoRow']['index'] - $this->_sections['vdoRow']['step'];
$this->_sections['vdoRow']['index_next'] = $this->_sections['vdoRow']['index'] + $this->_sections['vdoRow']['step'];
$this->_sections['vdoRow']['first']      = ($this->_sections['vdoRow']['iteration'] == 1);
$this->_sections['vdoRow']['last']       = ($this->_sections['vdoRow']['iteration'] == $this->_sections['vdoRow']['total']);
?>
      <div class="game-list">
	  <div class="game-image1">
	  <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_id']; ?>
">
	  <img src="uploaded/video_images/thumbs/mid_<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_image']; ?>
" alt="Video" border="0" height="100" width="120" />
	  </a>
	  </div>
       <div class="game-details">
	        <h4><?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_title']; ?>
</h4>
			 <ul class="games-desc" style="padding-top:0px;">
               <li><span>Game :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['game']; ?>
</li>
			   <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['ladder_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['ladder_id'] != 0): ?>
               <li><span>Ladder :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['ladder']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['team_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['team_id'] != 0): ?>
               <li><span>Team :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['team']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['map_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['map_id'] != 0): ?>
               <li><span>Map :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['map']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['class_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['class_id'] != 0): ?>
               <li><span>Class :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['class']; ?>
 </li>
			   <?php endif; ?>			  
            </ul>
            <ul class="games-desc" style="padding-top:0px;">
               <!--<li><span>Race :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['race']; ?>
</li>-->
			   <li><span>Time Length :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['time_length']; ?>
</li>
			   <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['versus_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['versus_id'] != 0): ?>
               <li><span>Versus :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['versus']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['type_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['type_id'] != 0): ?>
               <li><span>Type :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['type']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['champion_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['champion_id'] != 0): ?>
               <li><span>Champion :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['champion']; ?>
 </li>
			   <?php endif; ?>
			    <?php if ($this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['mode_id'] != '' || $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['mode_id'] != 0): ?>
               <li><span>Mode :</span> <?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['mode']; ?>
 </li>
			   <?php endif; ?>
            </ul>
			<p class="clear"></p>
            <p style="padding-top:5px;"><?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['description']; ?>
</p>
			<p style="padding-top:5px; padding-left:250px;"><strong>Votes:</strong>&nbsp;&nbsp;<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['numlike']; ?>
</p>
            <p class="clear"></p>
            <div style="height:10px;"></div>
            <div class="clear"></div>
            <div style="width:100%">
			<div class="view">
			<a href="#" onclick="ConfirmDelete('<?php echo $this->_tpl_vars['page_name']; ?>
?action=del','<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_id']; ?>
','<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_title']; ?>
','your video:: ')">Delete</a></div>
			<div class="view" style="margin-right:5px;"><a href="my_video_update.php?video_id=<?php echo $this->_tpl_vars['CoachvdoArr'][$this->_sections['vdoRow']['index']]['video_id']; ?>
">Edit</a></div></div>
         </div>
         <div class="clear"></div>
      </div>
      <?php endfor; endif; ?>
	  <?php else: ?>
	    <div class="game-details"> No video found </div>
     <?php endif; ?>
      <div class="clear"></div>
   </div> 
 </div>  
</div>